Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.7 backport] Fix pod with owner of unknown workload kind #1126

Merged
merged 2 commits into from
Sep 6, 2022

Conversation

chrismuellner
Copy link
Collaborator

Description

See #1074 and #1086

In case of owner that is not well-known, the kind would be set to Pod, while the name couldn't be set because .metadata.name is empty at this point. The empty kind/name is correct in this case and should not block the init container.

How can this be tested?

Inject into a pod that has owner reference set to something of unknown kind, i.e. not Deployment, ReplicaSet, ..., but a separate API.

Checklist

  • Unit tests have been updated/added
  • PR is labeled accordingly
  • I have read and understood the contribution guidelines

@chrismuellner chrismuellner requested a review from a team as a code owner September 5, 2022 13:10
@chrismuellner chrismuellner merged commit 199c15e into release-0.7 Sep 6, 2022
@chrismuellner chrismuellner deleted the fix/backport-unknown-workload branch September 6, 2022 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants